﻿using System;

namespace WYJ.Log.LogWriters
{
    public interface ILogWriter : IDisposable
    {
        /// <summary>
        /// 继续从缓冲消费
        /// </summary>
        void Resume();

        /// <summary>
        /// 暂停从缓冲消费
        /// </summary>
        void Pause();

        /// <summary>
        /// 将消息写到缓冲。
        /// </summary>
        /// <param name="msg"></param>
        void WriteAsync(string msg);
    }
}